/**
 * @Encoding: utf-8
 * @Project: st2212 2213
 * @Package: PACKAGE_NAME
 * @File: ScoreGrade.java
 * @Time: 2022/11/8 9:26
 * @Author: abcque
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Description: 三个数从小到大输出
 */

import java.util.Scanner;

public class Sort {
    public static void main(String[] args) {
        // step1 定义变量 num1、num2、num3
        int num1, num2, num3;

        // step2 输入 num1、num2、num3 的值
        Scanner scanner = new Scanner(System.in);
        num1 = scanner.nextInt();
        num2 = scanner.nextInt();
        num3 = scanner.nextInt();

        // step3 随机选两个从小到大排序，这里使用 num1 和 num2,使 num1 <= num2
        if (num1 > num2){
            int t;
            t = num1;
            num1 = num2;
            num2 = t;
        }

        // step4 第三个数和较大的比较，大于放右边
        if (num3 > num2){
            System.out.println(num1 + " " + num2 + " " + num3);
        }

        // step5 第三个数和较小的比较，小于放左边
        else {
            if (num3 < num1){
                System.out.println(num3 + " " + num1 + " " + num2);
            }
            // step6 其它情况放中间
            else {
                System.out.println(num1 + " " + num3 + " " + num2);
            }
        }
    }
}
